package com.zsyh.changshang.basic;

import android.text.TextUtils;
import android.util.Log;

import com.zsyh.changshang.BuildConfig;


/**
 * @author shichen 754314442@qq.com
 * 车秒秒的Log工具类
 * Created by Administrator on 2018/9/28.
 */

public class LogUtilsMiao {
    public static void Log(String TAG, String msg) {
        //根据app编译的类型判断是否需要Log
        if (BuildConfig.DEBUG) {
            if (!TextUtils.isEmpty(msg)) {
                Log.e(TAG, msg);
            }
        }
    }

    public static void Log(String TAG, String msg, Throwable e) {
        if (BuildConfig.DEBUG) {
            if (!TextUtils.isEmpty(msg)) {
                if (e != null) {
                    Log.e(TAG, msg, e);
                }
            }
        }
    }
}
